// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './AdminApp'
import router from './router'
import sparkline from '@/components/admin/common/SparkLine'
Vue.config.productionTip = false

window.$ = window.jQuery = require('jquery');
window.Vue = Vue;

require("../static/vendors/jquery.sparkline/jquery.sparkline.js");
require("../static/vendors/bower_components/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js");

//全局组件定义
Vue.component('spark-line', sparkline)
Vue.component('curved-line', require('@/components/admin/common/CurvedLine.vue'))

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})